// router.js
import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '../views/HomePage/HomePage.vue'
import Login from '../views/Login/Login.vue'
import UserPage from '../views/UserPage/UserPage.vue'
const routes = [
  { path: '/',redirect: '/login' },
  { path: '/login', component: Login },
  { path: '/home', component:  HomePage },
  { path: '/user', component:  UserPage }
]
 
export default createRouter({
  history: createWebHistory(),
  routes
})